<template>
    <div>
        <h1>{{msg}}</h1>
        <router-link :to="{name:'Hi1',params:{user:'侯征'}}">子页面一</router-link>
        <router-link :to="{name:'Hi2',params:{user:'姚振',id:'66'}}">子页面二</router-link>
        <router-view></router-view>
    </div>
</template>
<script>
export default{
    name:'Hi',
    data(){
        return {
            msg:'Hi,Vue!'
        }
    }
}
</script>
<style>
</style>